package com.wu.framework.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:  安全路径配置
 * @author: 吴佳伟
 * @date: 2021/5/24
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "security.uri")
public class SecurityUrlProperties {

    /**
     * 是否允许内部接口通过（在ci环境中方便本地开发）
     */
    private Boolean allowInner = false;

    private List<String> ignores = new ArrayList<>();

    private List<String> externalIgnores = new ArrayList<>();

    private String innerUri = "/*/api/**";
}
